package com.syh.jn.scm.domain.upstream.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.upstream.entity.sale.UpSaleOrder;

public class UpSaleOrderEvent extends DomainEvent<UpSaleOrder> {
    public static final String UP_SALEORDER_DESTORY  = "upSaleOrderEventDestory";

    public static UpSaleOrderEvent buildUpSaleOrderDestory(Object[] values){
        UpSaleOrderEvent upSaleOrderEvent = new UpSaleOrderEvent();
        upSaleOrderEvent.eventName = UP_SALEORDER_DESTORY ;
        upSaleOrderEvent.values = values;
        return upSaleOrderEvent;
    }

    public static final String UP_SALEORDER_STATE_DESTORY = "upSaleOrderStateEventDestory";

    public static UpSaleOrderEvent buildUpSaleOrderStateDestory(Object[] values){
        UpSaleOrderEvent upSaleOrderEvent = new UpSaleOrderEvent();
        upSaleOrderEvent.eventName = UP_SALEORDER_STATE_DESTORY;
        upSaleOrderEvent.values = values;
        return upSaleOrderEvent;
    }

    public static final String UP_SALEORDER_REMOVE_STATE_DESTORY = "upSaleOrderRemoveStateEventDestory";

    public static UpSaleOrderEvent buildUpSaleOrderRemoveStateDestory(Object[] values){
        UpSaleOrderEvent upSaleOrderEvent = new UpSaleOrderEvent();
        upSaleOrderEvent.eventName = UP_SALEORDER_REMOVE_STATE_DESTORY;
        upSaleOrderEvent.values = values;
        return upSaleOrderEvent;
    }

    public static final String UP_SALE_ORDER_DELIVERY_DESTORY = "upSaleOrderDeliveryEventDestory";

    public static UpSaleOrderEvent buildUpSaleOrderDeliveryEventDestory(Object[] values){
        UpSaleOrderEvent upSaleOrderEvent = new UpSaleOrderEvent();
        upSaleOrderEvent.eventName = UP_SALE_ORDER_DELIVERY_DESTORY;
        upSaleOrderEvent.values = values;
        return upSaleOrderEvent;
    }

    //上游销售单取消确认事件
    public static final String UP_SALE_ORDER_CANCEL_CONFIRM = "upSaleOrderCancelConfirm";

    public static UpSaleOrderEvent buildUpSaleOrderCancelConfirm(Object[] values){
        UpSaleOrderEvent upSaleOrderEvent = new UpSaleOrderEvent();
        upSaleOrderEvent.eventName = UP_SALE_ORDER_CANCEL_CONFIRM;
        upSaleOrderEvent.values = values;
        return upSaleOrderEvent;
    }
    //上游销售单取消事件
    public static final String UP_SALE_ORDER_CANCEL = "upSaleOrderCancel";

    public static UpSaleOrderEvent buildUpSaleOrderCancel(Object[] values){
        UpSaleOrderEvent upSaleOrderEvent = new UpSaleOrderEvent();
        upSaleOrderEvent.eventName = UP_SALE_ORDER_CANCEL;
        upSaleOrderEvent.values = values;
        return upSaleOrderEvent;
    }
}
